require('normalize.css/normalize.css');
require('./scss/main.scss');
import React from 'react'
import ReactDOM from 'react-dom'
//import { Provider } from 'react-redux'
import { Router,Route, hashHistory ,IndexRedirect} from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
//import createRoutes from './routes'
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();

//import routes from './routes'

//const history = syncHistoryWithStore(hashHistory, store)
import {onEnter} from './view/wxConfig'
import Index from './view/index'
import About from './view/about'
import Report from './view/report'
import Introduct from './view/introduct'
import Code from './view/getCode'
import SucessCode from './view/sucessCode'
import NoPage from './components/404'


onEnter();
const targetDom = document.getElementById('root')

ReactDOM.render(
    <Router  history={hashHistory}>
        <Route path="/"  component={Index} />
        <Route path="report" component={Report} />
        <Route path="about"  component={About} />
        <Route path="introduct"  component={Introduct} />
        <Route path="code"  component={Code} />
        <Route path="success"  component={SucessCode} />
        <Route path='*' component={NoPage} />
    </Router>
 , targetDom);
